module.exports = {
    // 基本路径
    // publicPath: process.env.NODE_ENV === 'production' ? '/parser/' : '/',
    // publicPath: process.env.NODE_ENV === "production" ? "./" : "",
    publicPath: process.env.NODE_ENV === "production" ? "/services/app-zonghe/knowledge/" : "",
    // 生产环境是否生成 sourceMap 文件
    productionSourceMap: false,
    // 服务器端口号
    devServer: {
        proxy: {
            "/services": {
                // target: "http://localhost:9871",
                // target: "http://192.168.1.202:9871",
                target: "http://192.168.1.243:9880",
                // target: "http://192.168.1.179:9881",
                changeOrigin: false
            },
            "/api": {
                // target: 'http://192.168.2.239:9871/services/qingbao',
                target: "http://192.168.1.243:9880",
                // target: "http://192.168.1.202:9871",
                // target: "http://117.50.65.85:9881",
                // target: "http://localhost:9881",
                // target: "http://192.168.1.179:9881",
                changeOrigin: false,
            }
            //---------------------
            // '/api': {
            //     // target: 'http://192.168.2.239:9871/services/qingbao',
            //     target: 'http://localhost:9881',
            //     // target: 'http://192.168.2.179:80',
            //     changeOrigin: false
            // }
        },
        // host: '0.0.0.0',
        host: "localhost",
        // host: "192.168.1.230",
        port: 8080,
    }
};